
package hasthi.manager.gui;

import java.awt.FlowLayout;
import java.util.HashMap;
import java.util.Map;

import javax.swing.BorderFactory;
import javax.swing.JPanel;

public class HostCanvas extends JPanel{
    private String hostName;
    private Map<String, ResourceCanvas> resources = new HashMap<String, ResourceCanvas>();
    public HostCanvas(String hostName) {
        this.hostName = hostName;
       setLayout(new FlowLayout());
       //add(new JLabel(hostName));
       setBorder(BorderFactory.createTitledBorder(hostName));
    }
    
    
//    public void addResource(ResourceCanvas r){
//        resources.put(r.getID(), r);
//    }
//    
//    
//    public void removeResource(String id){
//        ResourceCanvas r = resources.get(id);
//    }
//    
//    public void paint(Graphics g) {
//        super.paint(g);
//        int x = 0;
//        int y = 10;
//        for(ResourceCanvas r:resources.values()){
//            r.paint(g, x, y);
//            x = x + 2*GUIConstants.RESOURCE_RADIOUS+5;
//        }
//        
////        Color c = Color.GREEN;
////        
////        g.setColor(c);
////        g.fillOval(30,30,60,60);
//    }
}

